import { http, toast} from '@/uni_modules/uview-plus'

//谜金内容列表
export const getGoldCoinList = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getGoldCoinListApi', params, config)

//获取谜金题目下拉label
export const subjectGoldLabelApi = (config = {custom:{loading:true,catch:true}}) => http.get('/api/subjectGoldLabelApi',config)

//获取谜金题目详情
export const subjectGoldInfoApi = (id, config = {custom:{loading:true,catch:true}}) => http.get('/api/subjectGoldInfoApi?id='+id,config)

//谜金内容答题
export const joinGoldCoin = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/joinGoldCoinApi', params, config)

//我发布的谜金列表
export const getForOtherGoldCoinListApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getForOtherGoldCoinListApi', params, config)

//我发布的谜金列表
export const getForOtherGoldCoinInfoApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getForOtherGoldCoinInfoApi', params, config)

//谜金内容发布
export const saveGoldCoinApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/saveGoldCoinApi', params, config)

//我参与的谜金列表
export const getMyJoinGoldCoinListApi = (params, config = {custom:{loading:true,catch:true}}) => http.post('/api/getMyJoinGoldCoinListApi', params, config)
